# 判断用户登陆方法四，自己封装LoginRequiredMixin
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views import View

class MyLoginRequiredview(LoginRequiredMixin, View):
    login_url = '/login'  # 未登录的，重定向的路径
    redirect_field_name = "next" #跳转的引用
